package com.yss.sofa.report.engine.cell.visible.form;

import com.yss.sofa.report.engine.Const;
import com.yss.sofa.report.engine.cell.ReportCell;

public class LazyTreeFormCell extends FormCell{
	private static final long serialVersionUID = -1700873142201129652L;
	private String dataset;
	private boolean multi;
	private boolean leaf;
	private int search;
	protected void init(){
		super.init();
		multi=false;
		leaf=true;
		dataset=Const.NONE;
		search=4;
		inputType=Const.FORM_INPUT_TYPE_LAZY_TREE;
	}
	public void assignTo(ReportCell cell){
		LazyTreeFormCell _=(LazyTreeFormCell)cell;
		super.assignTo(_);
		_.dataset=this.dataset;
		_.multi=this.multi;
		_.leaf=this.leaf;
		_.search=this.search;
	}
	public LazyTreeFormCell create(){
		LazyTreeFormCell _=new LazyTreeFormCell();
		this.assignTo(_);
		return _;
	}
	public String getRenderSource() {
		return "lazy-tree-field";
	}
	
	/**
	 * @return the dataset
	 */
	public String getDataset() {
	
		return dataset;
	}
	
	/**
	 * @param dataset the dataset to set
	 */
	public void setDataset(String dataset) {
	
		this.dataset = dataset;
	}
	
	/**
	 * @return the multi
	 */
	public boolean isMulti() {
	
		return multi;
	}
	
	/**
	 * @param multi the multi to set
	 */
	public void setMulti(boolean multi) {
	
		this.multi = multi;
	}
	
	/**
	 * @return the leaf
	 */
	public boolean isLeaf() {
	
		return leaf;
	}
	
	/**
	 * @param leaf the leaf to set
	 */
	public void setLeaf(boolean leaf) {
	
		this.leaf = leaf;
	}
	@Override
	public boolean isCustom() {
		return false;
	}
	public int getSearch() {
		return search;
	}
	public void setSearch(int search) {
		this.search = search;
	}
}
